/**
 * <p>
 * Created on 2006-11-7 11:01:31 <br>
 * Copyright (c) 2006, All rights reserved.
 * </p>
 * @author Widen
 */
package com.widen.prima.view;

import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;

import com.widen.prima.util.Util;

public class BrowserView
    extends ViewPart
{
    public static final String ID = "com.widen.prima.view.browserview"; //$NON-NLS-1$

    public BrowserView()
    {
        super();
    }

    public void createPartControl(Composite parent)
    {
        parent.setLayout(new FillLayout());

        // Create a web browser
        Browser browser = new Browser(parent, SWT.NONE);

        // Navigate to Slashdot
        browser.setUrl(Util.helpUrl);
    }

    public void setFocus()
    {
    }
}
